package utils;

import java.util.Map;

public class Common {
    public void returnMsg(Map<String, Object> message, int result, String successMsg, String failMsg) {
//        Map<String, Object> message = new HashMap<>();
        if (result>0) {
            message.put("success", true);
            message.put("message", successMsg);
        } else {
            message.put("success", false);
            message.put("message", failMsg);
        }
        System.out.println(message.get("message").toString());
//        return message;
    }
}
